package com.htc.dp.filter;

/**
 * @author: htc
 * @date: Created in 17:16 2018/6/7.
 */
public class Main {
//    public static void main(String[] args) {
//        String msg = "大家好:),<script>，敏感，被就业，网络授课没感觉，因为看不见大家伙儿";
//        MsgProcessor mp = new MsgProcessor();
//        mp.setMsg(msg);
//        String result = mp.process();
//        System.out.println(result);
//    }


    public static void main(String[] args) {
        String msg = "大家好:),<script>，敏感，被就业，网络授课没感觉，因为看不见大家伙儿";
        Request request = new Request();
        request.setRequestStr(msg);
        Response response = new Response();
        response.setResponseStr("response");
        FilterChain filterChain = new FilterChain();
        filterChain.addFilter(new HtmlFilter()).addFilter(new SensitiveFilter()).addFilter(new FaceFilter());
        filterChain.doFilter(request, response, filterChain);
        System.out.println(request.getRequestStr());
        System.out.println(response.getResponseStr());
    }
}
